<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // 1. document dom 中顶层对象

    // 2. window  bom 顶层顶层对象

    //  任何东西 都是挂载到 window下的

    var ausername = 123

    function afn() {
      console.log(11111)
    }

    var arr = []
    var aobj = {}

    console.dir( window )

  </script>
</body>
</html>